<?php

namespace App\Model;
use Hyperf\Database\Model\SoftDeletes;

class AdminUser extends Model {
    protected $table = 'admin_user';
    use SoftDeletes;

    protected $fillable = [
        'username',
        'nickname',
        'password',
        'role_id',
        'status',
    ];

    public function role() {
        return $this->belongsTo(Role::class);
    }
}